#include "Command.h"

//@author A0105730U
Command::Command(){
	message = ErrorFormat;
}

//@author A0105730U
Command::~Command(){}

//@author A0105730U
void Command::setInvalid(){
	type = CommandTypeInvalid;
}

//@author A0105730U
void Command::setMessage(Error error){
	message = error;
}

//@author A0105730U
Error Command::getMessage(){
	return message;
}

//@author A0105730U
bool Command::isValid(){
	if(type == CommandTypeInvalid){
		return false;
	}else{
		return true;
	}
}

//@author A0105735J
CommandType Command::getCommandType(){
	return type;
}

//@author A0105735J
Feedback Command::execute(Receiver* theE){
	Feedback invalidOutput;
	return invalidOutput;
}

//@author A0105735J
Feedback Command::undo(Receiver* theE){
	Feedback invalidOutput;
	return invalidOutput;
}


